A = a b c
B = $(foreach a, $(A), $(a).o)

C = a b c d/

D = $(filter-out %/, $(C))
E = $(filter %/, $(C))

files = $(wildcard *.c)

files1 = a.c d.c

files2 = $(wildcard $(files1)) 

files3 = $(patsubst %.c, %.d, $(files1))

all:
	@echo B = $(B)
	@echo D = $(D)
	@echo E = $(E)
	@echo files = $(files)
	@echo files2 = $(files2)
	@echo files3 = $(files3)
